package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商机对象 opportunity
 * 
 * @author sauger
 * @date 2022-04-01
 */
@Data
public class Opportunity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 商机编号 */
    @Excel(name = "商机编号")
    private String sn;

    /** 商机名称 */
    @Excel(name = "商机名称")
    private String name;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 客户 */
    @Excel(name = "客户")
    private Integer customerId;

    /** 预计签约金额 */
    @Excel(name = "预计签约金额")
    private BigDecimal expectAmount;

    /** 预计签约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计签约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expectTime;

    /** 协作人 */
    @Excel(name = "协作人")
    private String cooperator;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 商务负责人 */
    @Excel(name = "商务负责人")
    private Integer businessManager;

    /** 渠道 */
    @Excel(name = "渠道")
    private Integer channel;

    /** 概率 */
    @Excel(name = "概率")
    private BigDecimal probability;

    /** 记录创建时间 */
    private Long createdAt;

    /** 创建人 */
    private Long createdBy;

    /** 部门id */
    private Long deptId;

    /** 附件 */
    private String attach;

    /** 附件名 */
    private String attachName;

    /** 类型    0：线索     1：商机 */
    private Integer type;

    private String customerName;

    private String businessManagerName;

}
